from flask_restful import Api

from apps.settingApi.api.basic.views import basicTypeListView,basicTypePkView,basicDeptListView,basicDeptPkView,basicSalmListView,basicSalmPkView,basicZcnoListView,basicZcnoPkView,basicDbPoolListView,basicDbPoolPkView

setting_basic_api = Api(prefix='/setting/basic/')

# 基础数据类型列表操作
setting_basic_api.add_resource(basicTypeListView,'/typelist/',endpoint="basictypelist")
# 基础数据类型 PK操作
setting_basic_api.add_resource(basicTypePkView,'/typepk/<pk>/',endpoint="basictypepk")

# 部门数据类型列表操作
setting_basic_api.add_resource(basicDeptListView,'/deptlist/',endpoint="deptlist")
# 部门数据类型 PK操作
setting_basic_api.add_resource(basicDeptPkView,'/deptpk/<pk>/',endpoint="deptpk")

# 员工资料数据类型列表操作
setting_basic_api.add_resource(basicSalmListView,'/salmlist/',endpoint="salmlist")
# 员工资料数据类型 PK操作
setting_basic_api.add_resource(basicSalmPkView,'/salmpk/<pk>/',endpoint="salmpk")

# 工序资料数据类型列表操作
setting_basic_api.add_resource(basicZcnoListView,'/zcnolist/',endpoint="zcnolist")
# 工序资料数据类型 PK操作
setting_basic_api.add_resource(basicZcnoPkView,'/zcnopk/<pk>/',endpoint="zcnopk")

# 数据库连接池资料数据类型列表操作
setting_basic_api.add_resource(basicDbPoolListView,'/dbpoollist/',endpoint="dbpoollist")
# 数据库连接池资料数据类型 PK操作
setting_basic_api.add_resource(basicDbPoolPkView,'/dbpoolpk/<pk>/',endpoint="dbpoolpk")